package com.bear.cli.pattern;

//这个相当于是遥控器，我们客户端传进来命令指令，这里进行绑定
public class RemoteControl {
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void pressButton() {
        command.execute();
    }
}
